package com.ruoyi.supplier.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.ruoyi.common.excel.annotation.ExcelDictFormat;
import com.ruoyi.common.excel.convert.ExcelDictConvert;
import lombok.Data;
import java.util.Date;



/**
 * 商品相册视图对象
 *
 * @author ruoyi
 * @date 2023-09-18
 */
@Data
@ExcelIgnoreUnannotated
public class ProductAlbumVo {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @ExcelProperty(value = "主键id")
    private Integer productAlbumId;

    /**
     * 商品id
     */
    @ExcelProperty(value = "商品id")
    private Integer productId;

    /**
     * 素材地址
     */
    @ExcelProperty(value = "素材地址")
    private String url;

    /**
     * 类型（1 图片 2视频）
     */
    @ExcelProperty(value = "类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "1=,图=片,2=视频")
    private Integer type;

    /**
     * 商户id
     */
    @ExcelProperty(value = "商户id")
    private Integer merchantId;


}
